<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>购物车</title>
</head>
<body>	
		<h3 style="text-align: center;">黑马书籍商城--商品购买</h3>
		<p style="text-align: center;">
			欢迎尊贵的铂金会员
			<span style="color: red;">
			 	${existUser.name}
			</span> 
			<a href="${pageContext.request.contextPath}/BookServlet?method=findAll">首页</a>
			<a href="${pageContext.request.contextPath}/CartServlet?method=findAll">购物车</a>
			<a href="${pageContext.request.contextPath}/LogoutServlet">[退出登录]</a>
		</p>
		<hr />
		<form action="/WebLogin/CartServlet?method=insert" method="post">
			<table border="1" width="350" align="center">
				<tbody>					
					<tr>
						<td>
							购买书籍
						</td>
						<td>
							<input type="text" name="bookName" value="${book.bookName}" readonly="readonly"/>
						</td>
					</tr>
					<tr>
						<td>
							单价
						</td>
						<td>
							<input type="text" name="bookPrice" value="${book.price}" readonly="readonly"/>
						</td>
					</tr>
					<tr>
						<td>
							购买数量
						</td>
						<td>
							<input type="text" name="bookCount" value="0" />
						</td>
					</tr>
					<tr>
						<td>
							备注
						</td>
						<td>
							<textarea rows="3" cols="14" name="c_desc"></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input type="submit" value="加入购物车"/>
						</td>	
					</tr>
				</tbody>
			</table>
		</form>
</body>
</html>